<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla modelitem library
jimport('joomla.application.component.modelitem');
/**
 * AjaxWhois Model
 */
class AjaxWhoisModelRegDomain extends JModelItem {
	var $config = NULL;
	/**
	 * Get the message
	 * @return object The message to be displayed to the user
	 */
	public function getItem() {
		if (!isset($this->item)) {
			$id = JRequest::getInt('id');
			// Get a TableAjaxWhois instance
			$table = $this->getTable();
			// Load the message
			$table->load($id);
			// Add global parameters
			$params = clone JFactory::getApplication('site')->getParams();
			$params->merge($table->params);
			$table->params = $params;
			// Assign the message
			$this->item = $table;
		}
		return $this->item;
	}
}
